From: Cedric Bosdonnat Date: Fri, 2 Dec 2016 15:08:12 +0000 (+0100) Subject: libxl/libxl_checkpoint_device.c: used LOG*D functions X-Git-Tag: archive/raspbian/4.11.1-1+rpi1~1^2~66^2~3326 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=5b5a012d2553573d6adf556002f744aa0a01fbc4;p=xen.git libxl/libxl_checkpoint_device.c: used LOG*D functions Use LOG*D logging functions where possible instead of the LOG* ones. Signed-off-by: Cédric Bosdonnat Acked-by: Wei Liu --- diff --git a/tools/libxl/libxl_checkpoint_device.c b/tools/libxl/libxl_checkpoint_device.c index 0a16dbb156..01e74b563a 100644 --- a/tools/libxl/libxl_checkpoint_device.c +++ b/tools/libxl/libxl_checkpoint_device.c @@ -132,7 +132,7 @@ static void device_setup_iterate(libxl__egc *egc, libxl__ao_device *aodev) if (!dev->ops) { libxl_device_nic * nic = NULL; libxl_device_disk * disk = NULL; - uint32_t domid; + uint32_t domid = INVALID_DOMID; int devid; if (dev->kind == LIBXL__DEVICE_KIND_VIF) { nic = (libxl_device_nic *)dev->backend_dev; @@ -143,15 +143,15 @@ static void device_setup_iterate(libxl__egc *egc, libxl__ao_device *aodev) domid = disk->backend_domid; devid = libxl__device_disk_dev_number(disk->vdev, NULL, NULL); } else { - LOG(ERROR,"device kind not handled by checkpoint: %s", - libxl__device_kind_to_string(dev->kind)); + LOGD(ERROR, domid, "device kind not handled by checkpoint: %s", + libxl__device_kind_to_string(dev->kind)); aodev->rc = ERROR_FAIL; goto out; } - LOG(ERROR,"device not handled by checkpoint" - " (device=%s:%"PRId32"/%"PRId32")", - libxl__device_kind_to_string(dev->kind), - domid, devid); + LOGD(ERROR, domid, "device not handled by checkpoint" + " (device=%s:%"PRId32"/%"PRId32")", + libxl__device_kind_to_string(dev->kind), + domid, devid); aodev->rc = ERROR_CHECKPOINT_DEVICE_NOT_SUPPORTED; goto out; }